import 'dart:convert';

List<BookAssigned> bookAssignedFromJson(String str) => List<BookAssigned>.from(json.decode(str).map((x) => BookAssigned.fromJson(x)));
String bookAssignedToJson(List<BookAssigned> data) => json.encode(List<dynamic>.from(data.map((x) => x.toJson())));

class BookAssigned {
    BookAssigned({
        this.bookId,
        this.ifAssigned,
    });

    String? bookId;
    bool? ifAssigned;

    factory BookAssigned.fromJson(Map<String, dynamic> json) => BookAssigned(
        bookId: json["bookId"],
        ifAssigned: json["ifAssigned"] ?? false,
    );

    Map<String, dynamic> toJson() => {
        "bookId": bookId,
        "ifAssigned": ifAssigned,
    };
}
